Developer --> Technical Publications
PATHMac OS 8 Developer Documentation > Human Interface Toolbox > Dialog Manager >

Mac OS 8 Dialog Manager Reference


Alert Default Text Constants

You can use these constants in the defaultText , cancelText , and otherText fields of the standard alert structure AlertStdAlertParamRec to specify the default text for the OK, Cancel, and Don't Save buttons. Alert default text constants are available with Appearance Manager 1.0 and later.

enum {
    kAlertDefaultOKText     = -1,       
    kAlertDefaultCancelText = -1,       
    kAlertDefaultOtherText  = -1        
};

Constant descriptions

kAlertDefaultOKText
The default text for the default (right) button is "OK" on an English system. The text will vary depending upon the localization of the user's system. Use this constant in the defaultText field of the standard alert structure AlertStdAlertParamRec .
kAlertDefaultCancelText
The default text for the Cancel (middle) button is "Cancel" on an English system. The text will vary depending upon the localization of your system. Use this constant in the cancelText field of the standard alert structure AlertStdAlertParamRec .
kAlertDefaultOtherText
The default text for the third (leftmost) button is "Don't Save" for an English system. The text will vary depending upon the localization of the user's system. Use this constant in the otherText field of the standard alert structure.

© 1998 Apple Computer, Inc. - (Last Updated 19 Nov 98)

Previous | Back Up One Level | Next |